package lg.minecraft.plugin.testeconomy.storage;

/**
 * @author langle__
 * @version 1.0
 */
public enum StorageType {
    YAML("yaml"),
    JSON("json"),
    XML("xml"),
    SQLITE("sqlite"),
    MYSQL("mysql");

    public final String name;

    StorageType(String name) {
        this.name = name;
    }

    public static StorageType getStorageType(String type) {
        for (StorageType storageType : StorageType.values()) {
            if (storageType.name().equalsIgnoreCase(type)) {
                return storageType;
            }
        }
        return null;
    }
}
